package com.dkm.orproject.dkmoa.service.flow;

import com.dkm.orproject.dkmoa.domain.OaEntryFlow;
import com.dkm.orproject.dkmoa.domain.OaPersonnel;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @ClassName : OaEntryFlowService  //类名
 * @Description : 人事流程服务接口  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-08-04 16:25  //时间
 */
public interface OaEntryFlowService {
    List<OaEntryFlow> findAll(OaEntryFlow entryFlow, String startTime, String endTime, Integer page, Integer limit, Long personnelId);

    Long rowCount(OaEntryFlow entryFlow, String startTime, String endTime, Long personnelId);

    int add(OaEntryFlow entryFlow, OaPersonnel personnel);

    int audit(OaEntryFlow entryFlow, OaPersonnel personnel);

    int deleteAll(List<Long> list);

    List<OaEntryFlow> selectAll(List<Long> list);

    OaEntryFlow findById(Long id);

    int deleteById(Long id);

    OaEntryFlow addEntryFlow(HttpServletRequest request);

    int addTemporary(OaEntryFlow entryFlow, OaPersonnel personnel);

    int auditPass(OaEntryFlow entryFlow, String formReason, OaPersonnel personnel);

    public int auditNoPass(OaEntryFlow entryFlow, String formReason, OaPersonnel personnel);

    Long getThisRecord(Long pkPersonnelId);

    OaEntryFlow findByPersonnelId(Long personnelId);
}

